<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>返校申请</title>
    <style>
        {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
        }

        body {
            background-color: #f5f7fa;
        }

        .app-container {
            width: 375px;
            margin: 20px auto;
            background-color: #fff;
            border: 1px solid #eee;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .header {
            background-color: #007bff;
            color: #fff;
            padding: 15px;
            text-align: center;
            font-size: 18px;
            font-weight: 600;
        }

        .form-content {
            padding: 15px;
        }

        .radio-group {
            margin-bottom: 20px;
        }

        .radio-item {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            cursor: pointer;
        }

        .radio-item input {
            margin-right: 8px;
        }

        .radio-item .desc {
            font-size: 12px;
            color: #666;
            margin-left: 5px;
        }

        .process-section,
        .delay-section {
            margin-bottom: 20px;
        }

        .process-section h3,
        .delay-section h3 {
            font-size: 16px;
            margin-bottom: 10px;
            color: #333;
        }

        .approver-item {
            margin-bottom: 10px;
        }

        .approver-item .label {
            display: block;
            font-size: 14px;
            color: #666;
            margin-bottom: 3px;
        }

        .approver-item .name {
            font-weight: 600;
        }

        .approver-item .status {
            color: #28a745;
        }

        .approver-item .comment {
            font-size: 13px;
            color: #555;
        }

        .form-item {
            margin-bottom: 15px;
        }

        .form-item label {
            display: block;
            font-size: 14px;
            color: #666;
            margin-bottom: 5px;
        }

        .form-item input,
        .form-item textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
        }

        .form-item textarea {
            min-height: 80px;
            resize: none;
        }

        .submit-btn {
            width: 100%;
            padding: 12px;
            background-color: #007bff;
            color: #fff;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            cursor: pointer;
        }

        .submit-btn:hover {
            background-color: #0056b3;
        }

        .delay-section {
            display: none;
        }
        #line_1{
            color: #8f939c;
            font-size: 13px;
        }
    </style>
</head>

<body>
<div class="app-container">
    <div class="header">返校申请</div>
    <div class="form-content">
        <div class="radio-group">
            <label class="radio-item" id="normalRadio">
                <input type="radio" name="applyType" checked>
                <span>申请返校</span>
                <span class="desc">适用于正常返校</span>
            </label>
            <label class="radio-item" id="delayRadio">
                <input type="radio" name="applyType">
                <span>申请延期返校</span>
                <span class="desc">适用于特殊情况，延期返校</span>
            </label>
        </div>

        <div class="process-section" id="normalProcess">
            <h3>请假流程</h3>
            <div class="approver-item">
                <span class="label">审批人(导师)</span>
                <span class="name">张三</span>
                <span class="status">√</span>
            </div>
            <view id="line_1">
                会签----------------------------1人通过即可进入下一节点
            </view>
            <div class="approver-item">
                <span class="label">审批人(导师)</span>
                <span class="name">王京</span>
                <span class="comment">"本月不允许续请假，马上要考试了！"</span>
            </div>
        </div>

        <div class="delay-section" id="delaySection">
            <h3>延期返校信息</h3>
            <div class="form-item">
                <label>延期返校时间</label>
                <input type="text" placeholder="请选择延期返校时间">
            </div>
            <div class="form-item">
                <label>返校理由</label>
                <textarea placeholder="请输入返校理由" maxlength="100"></textarea>
            </div>

            <h3>返校申请流程</h3>
            <div class="approver-item">
                <span class="label">审批人(导师)</span>
                <span class="name">张三</span>
            </div>
            <view id="line_1">
                会签----------------------------1人通过即可进入下一节点
            </view>
            <div class="approver-item">
                <span class="label">审批人(导师)</span>
                <span class="name">王京</span>
            </div>
            <div class="approver-item">
                <span class="label">审批人(学校党委副书记)</span>
                <span class="name">贺原</span>
            </div>
        </div>

        <button class="submit-btn">提交申请</button>
    </div>
</div>

<script>
    const normalRadio = document.getElementById('normalRadio');
    const delayRadio = document.getElementById('delayRadio');
    const normalProcess = document.getElementById('normalProcess');
    const delaySection = document.getElementById('delaySection');

    normalRadio.addEventListener('click', function () {
        normalProcess.style.display = 'block';
        delaySection.style.display = 'none';
    });

    delayRadio.addEventListener('click', function () {
        normalProcess.style.display = 'none';
        delaySection.style.display = 'block';
    });

    const submitBtn = document.querySelector('.submit-btn');
    submitBtn.addEventListener('click', function () {
        alert('申请已提交，等待审批');
    });
</script>
</body>

</html>
